package com.xmtlxx.tms.domain.bo;

import com.xmtlxx.common.core.domain.BaseEntity;
import com.xmtlxx.common.core.validate.AddGroup;
import com.xmtlxx.common.core.validate.EditGroup;
import com.xmtlxx.tms.domain.vo.LinePoiVo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.List;

/**
 * 线路业务对象 t_lines
 *
 * @author xmtlxx
 * @date 2022-08-15
 */

@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel("线路业务对象")
public class LinesBo extends BaseEntity {

    /**
     * 线路ID
     */
    @ApiModelProperty(value = "线路ID")
    private String id;

    /**
     * 承运商ID
     */
    @ApiModelProperty(value = "承运商ID", required = true)
    @NotBlank(message = "承运商ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private String carrierId;

    /**
     * 部门ID
     */
    @ApiModelProperty(value = "部门ID", required = true)
    @NotNull(message = "部门ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long deptId;

    /**
     * 线路名称
     */
    @ApiModelProperty(value = "线路名称", required = true)
    @NotBlank(message = "线路名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 类型
     */
    @ApiModelProperty(value = "类型", required = true)
    @NotBlank(message = "类型不能为空", groups = { AddGroup.class, EditGroup.class })
    private String type;

    /**
     * 状态
     */
    @ApiModelProperty(value = "状态")
    private String status;

    /**
     * 删除标识
     */
    @ApiModelProperty(value = "删除标识")
    private String delFlag;

    private List<LinePoiVo> linePois;

    private String clientId;
    /**
     * 取件人
     */
    private Long pickupId;
    /**
     * 派件人
     */
    private Long dispatchId;
}
